<?php
require("connection.php");
$year = $_POST["year"];
$mouth = $_POST["mouth"];
$day=$_POST["day"];
$wedding_time=$_POST["wedding_time"];
$address=$_POST["address"];
$boy_name=$_POST["boy"];
$girl_name=$_POST["girl"];
session_start();
$user_id=$_SESSION["user_id"];

$update_query="update basc_message set YEAR='$year',mouth='$mouth',DAY='$day',weddin_date='$wedding_time',girl_name='$girl_name',boy_name='$boy_name',address='$address' WHERE user_id=$user_id";

$result = mysql_query($update_query) or die("Query failed");
header ("Location:/admin/component/displayCard.php") ;

?>